import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/LoginView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/loginview',
      component: () => import('../views/LoginView.vue'),
    },
    {
      path: '/memberList',
      component: () => import('../views/member/MemberList.vue'),
    },
    {
      path: '/memberAdd',
      component: () => import('../views/member/MemberAdd.vue'),
    },
    {
      path: '/userList',
      component: () => import('../views/member/UserList.vue'),
    },
    {
      path: '/userAdd',
      component: () => import('../views/member/UserAdd.vue'),
    },
    {
      path: '/userUpdate',
      component: () => import('../views/member/UserUpdate.vue'),
    },
    {
      path: '/userright',
      component: () => import('../views/member/UserRight.vue'),
    },
    {
      path: '/userRihtAdd',
      component: () => import('../views/member/UserRihtAdd.vue'),
    },
    {
      path: '/shopList',
      component: () => import('../views/shop/ShopList.vue'),
    },
    {
      path: '/shopadd',
      component: () => import('../views/shop/ShopAdd.vue'),
    },
  ],
})

export default router
